from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('community', '0006_delete_econews'),
    ]

    operations = [
        migrations.CreateModel(
            name='HomeBanner',
            fields=[
                ('banner_id', models.AutoField(primary_key=True, serialize=False, verbose_name='轮播唯一ID', db_comment='轮播唯一ID')),
                ('image_url', models.CharField(max_length=500, verbose_name='图片URL', db_comment='图片URL')),
                ('title', models.CharField(max_length=100, null=True, blank=True, verbose_name='标题', db_comment='标题')),
                ('slogan', models.CharField(max_length=255, null=True, blank=True, verbose_name='标语', db_comment='标语')),
                ('align', models.CharField(max_length=10, choices=[('left', '靠左'), ('right', '靠右'), ('center', '居中')], default='right', verbose_name='文案对齐', db_comment='文案对齐')),
                ('is_active', models.BooleanField(default=True, verbose_name='是否展示', db_comment='是否展示在首页')),
                ('order', models.IntegerField(default=0, verbose_name='排序', db_comment='越小越靠前')),
                ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='创建时间', db_comment='创建时间')),
            ],
            options={
                'db_table': 'xiangsu_home_banners',
                'db_table_comment': '首页轮播图配置表',
                'verbose_name': '首页轮播图',
                'verbose_name_plural': '首页轮播图',
                'ordering': ['order', '-created_at'],
            },
        ),
    ]

